package com.szm.feignserver.service;

import com.szm.feignserver.entity.User;
import org.springframework.stereotype.Component;

@Component
public class UserServiceFallback implements UserService {

    public User getUser() {
        User user=new User();
        user.setUsername("Hystrix开启!");
        return user;
    }
}
